var scope = 'global scope'
function checkscope() {
    var scope = 'local scope'
    function nested() {
        var scope = 'nested scope'
        return scope;
    }
    return nested();
}
console.log('嵌套作用域', checkscope())